package com.laolei.core.rest;

import java.util.LinkedList;
import java.util.List;

public class RestParam {
	private String name;
	private String defaultValue;
	private List<Short> values;

	public RestParam() {
	}

	public RestParam(String name, String defaultValue,short num) {
		this.name = name;
		this.defaultValue = defaultValue;
		values=new LinkedList<>();
		values.add(num);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public List<Short> getValues() {
		return values;
	}

	public void setValues(List<Short> values) {
		this.values = values;
	}

	@Override
	public int hashCode() {
		if (name == null)
			return 0;
		return this.name.hashCode();
	}
}
